<template>
  <div class="index">
    <Table :tableLoading="laoding" @add="add"></Table>
    <Form ref="formRef" :formList="formList" @success="getList"></Form>
  </div>
</template>
<script setup>
  import { tabColumn, tableData, searchList1, formList } from "./data";
  import Form from "./Form.vue";
  import { View } from '@element-plus/icons-vue'
  provide("tabColumn", tabColumn);
  provide("tableData", tableData);
  provide("searchList1", searchList1);
  provide("addShow", false);
  provide("rowDelShow", false);
  provide("rowEditShow", false);
  provide("indexShow", false);
  provide("expShow", true);
  provide("selectionShow", true);
  provide("exportName", "系统操作日志");
  const laoding = ref(false);
  const getList = () => {
    laoding.value = true;
    setTimeout(() => {
      laoding.value = false;
    }, 300);
  }
  getList();
  const formRef = ref();
  const add = (e) => {
    console.log(e);
    formRef.value.init(e)
  }
</script>
<style scoped>
/* @import url(); 引入css类 */
</style>
